package com.martini.satoken01.service;

import cn.dev33.satoken.stp.StpUtil;

/**
 * @author martini at 2021/12/17 23:47
 */
public class SaTokenUserAuthServiceImpl implements UserAuthService {

    @Override
    public boolean isLogin() {
        return StpUtil.isLogin();
    }

    @Override
    public Object getSubjectId() {
        return StpUtil.getLoginId();
    }

}
